package com.uzykj.modules.blog.entity;

import com.uzykj.core.persistence.TreeEntity;

/**
 * @author ghostxbh
 * @date 2020/7/8
 * 类别
 */
public class BlogCategory extends TreeEntity<BlogCategory> {

    private String image;

    private String status;

    public BlogCategory() {
        super();
    }

    public BlogCategory(String id) {
        super(id);
    }

    @Override
    public BlogCategory getParent() {
        return parent;
    }

    @Override
    public void setParent(BlogCategory parent) {
        this.parent = parent;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getParentId() {
        return parent != null && parent.getId() != null ? parent.getId() : "0";
    }
}